<?php
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once dirname(__FILE__) . '/../checkbox.php';

class CheckboxTest extends  UnitTestCase
{
	protected $_obj;

	public function setUp()
	{
		parent::setUp();
		$this->_obj = new SmartyComponents_Checkbox(COMPILE_DIR, 'checkboxtest');
	}

	/**
	 * 二個のチェックボックス
	 */
	public function Test1100()
	{
		$this->_obj->sName = 'name001';
		$this->_obj->aryOptions = array('1001'=>'その１', '1002'=>'その２');
		$this->_obj->sSelected = '1002';
		$this->_obj->sSeparator = '<br />';
		$this->_obj->onClick = 'return null;';
		$sHtml = $this->_obj->fetch();
		echo $sHtml;
	}
}